package conson.tech.manage.activity.service.impl;

import conson.tech.manage.activity.entity.pojo.TicketInfo;
import conson.tech.manage.activity.mapper.TicketMapper;
import conson.tech.manage.activity.service.TicketService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: TicketServiceImpl
 * Description:
 * Author: HXL
 * Date: 2020/5/22 10:47 上午
 * Version: 1.0
 */
@Slf4j
@Service
public class TicketServiceImpl implements TicketService {
    @Autowired
    private TicketMapper ticketMapper;

    @Override
    public List<TicketInfo> queryTicketInfo(Long userId) {

        return ticketMapper.queryTicketInfo(userId);
    }

    @Override
    public TicketInfo queryTicketInfoById(Long id,Long userId) {
        return ticketMapper.queryTicketInfoById(id,userId);
    }

    @Override
    public List<TicketInfo> queryTicketInfoListById(List<Long> ticketRecordList) {
        return ticketMapper.queryTicketInfoListById(ticketRecordList);
    }
}
